<!DOCTYPE html>
<html>
<head>
	<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no">
	<meta charset="utf-8">
    <title>{$title}</title>
    <link rel="shortcut icon" href="__STATIC__/src/common/img/cauliflower-small.png" type="image/x-icon" />
    <link rel="stylesheet" type="text/css"  href="__STATIC__/src/common/css/bootstrap.css" />
    <link rel="stylesheet" type="text/css"  href="__STATIC__/src/common/css/common.css" />
</head>
<body>
{include file="common@common/header"}
	<div class="">
		<div class="">
			<div class="col-md-2 col-md-offset-1">
				{include file="common/leftPanel"}
			</div>
			<div class="col-md-4">
				<div class="modal fade" id="myModal" tabindex="-1" aria-labelledby="myModalLabel" aria-hidden="true">
					<div class="modal-dialog">
						<div class="modal-content">
							<div class="modal-header">
								<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
								<h4 class="modal-title" id="myModalLabel">修改密码</h4>
							</div>
							<form>
								<div class="modal-body">

								</div>
								<div class="modal-footer">
									<button class="btn btn-default" type="button" data-dismiss="modal">关闭</button>
									<button type="button" class="btn btn-primary">保存修改</button>
								</div>
							</form>
						</div>
					</div>
				</div>
				<form method="POST" action="deleteTeacher">
					<div class="panel panel-info">
						<div class="panel-heading">
							<h3 class="panel-title">教师列表</h3>
						</div>
						<table class="table table-striped">
							<tr>
								<th><input type="checkbox" onchange="checkAllOrNot(this)"/></th>
								<th>ID</th>
								<th>教师名称</th>
								<th>操作</th>
							</tr>
							{volist name="teachers" id="teacher" key="ID"}
							<tr>
								<td><input type="checkbox" name="items[]" value="" onchange="changeValue(this)"/></td>
								<td>{$ID}</td>
								<td>{$teacher.user_name}</td>
								<td>
									<a href="addManager?teacher={$teacher.user_name}"><span class="glyphicon glyphicon-user" data-toggle="tooltip" title="添加为管理员"></span></a>
									<!--<a href="" data-toggle="modal" data-target="#myModal"><span class="glyphicon glyphicon-edit" data-toggle="tooltip" title="修改密码"></span></a>-->
								</td>
							</tr>
							{/volist}
						</table>
					</div>
					{$teachers->render()}
					<div>
						<button type="submit" class="btn btn-primary">删除教师</button>
					</div>
				</form>
			</div>
		</div>
	</div>
<script src="__STATIC__/src/common/js/jquery-3.2.1.js"></script>
<script src="__STATIC__/src/common/js/bootstrap.js"></script>
<script src="__STATIC__/src/common/js/admin.js"></script>
<script>
	$(function () {
		$("[data-toggle='tooltip']").tooltip();
    });
</script>
</body>
</html>